﻿
using System;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new ServiceReference1.PersonServiceClient ();
            for (int i = 1; i < 3; i++)
            {
                Console.WriteLine(client.GetAllPersonsByJson(i));
            }
            Console.WriteLine("按任意键终止服务!");
            Console.ReadKey();
            client.Close();
        }
    }
}
